import api from '../api.js'
//登录
export function login() {

}
//获取用户信息
export function getUserInfo() {
	let userInfo = JSON.parse(uni.getStorageSync('userInfo'));
	return api.read('res.partner', userInfo.partner_id,
		'name,suanma_status,image_128,account_type,is_confirm,location_company_id,idcard_file_a,idcard_file_b,mobile,idcard,work_type,sex,age,address,work_type_grade,education_degree,work_years'
	)
}

//实名认证
export function verified(data) {
	return api.verified(data)
}

export function verified1(data) {
	return api.verified1(data)
}

export function getTeamInfo() {
	let userInfo = JSON.parse(uni.getStorageSync('userInfo'));
	return api.readPage('jhj.team', 'id,name,work_type,team_lead_years', 0, 1, `[('user_id','=',${userInfo.uid})]`)
}
export function getCompanyInfo() {
	let userInfo = JSON.parse(uni.getStorageSync('userInfo'));
	return api.read('jhj.company', userInfo.location_company_id, 'id,code,name,mobile')
}
